<template>
    <div class="pacman-out">
      <!-- <div class="pacman">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
      </div> -->
      <svg  class="circular" viewBox="25 25 50 50">
          <circle class="path" cx="50" cy="50" r="20" fill="none"/>
        </svg>
    </div>
</template>

<script>
export default {
    
}
</script>
<style>
 .pacman-out{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: absolute;
  z-index: 10000;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  background: rgba(255,255,255,1);
 }
.pacman {
  position: relative
}
.pacman:after{
  content: "";
  display: inline-block;
  background:#f1f2f9;
  width: 8px;
  height: 8px;
  border-radius: 100%;
  position: absolute;
  z-index: 100;
  left: 22px;
  top: 5px;
  opacity: 0.8;
}

.pacman>div:nth-child(2) {
  -webkit-animation: pacman-balls 1s 0s infinite linear;
  animation: pacman-balls 1s 0s infinite linear
}

.pacman>div:nth-child(3) {
  -webkit-animation: pacman-balls 1s .33s infinite linear;
  animation: pacman-balls 1s .33s infinite linear
}

.pacman>div:nth-child(4) {
  -webkit-animation: pacman-balls 1s .66s infinite linear;
  animation: pacman-balls 1s .66s infinite linear
}

.pacman>div:nth-child(5) {
  -webkit-animation: pacman-balls 1s .99s infinite linear;
  animation: pacman-balls 1s .99s infinite linear
}

.pacman>div:first-of-type {
  width: 0;
  height: 0;
  border-right: 25px solid transparent;
  border-top: 25px solid $primary-color;
  border-left: 25px solid $primary-color;
  border-bottom: 25px solid $primary-color;
  border-radius: 25px;
  -webkit-animation: rotate_pacman_half_up .5s 0s infinite;
  animation: rotate_pacman_half_up .5s 0s infinite
}

.pacman>div:nth-child(2) {
  width: 0;
  height: 0;
  border-right: 25px solid transparent;
  border-top: 25px solid $primary-color;
  border-left: 25px solid $primary-color;
  border-bottom: 25px solid $primary-color;
  border-radius: 25px;
  -webkit-animation: rotate_pacman_half_down .5s 0s infinite;
  animation: rotate_pacman_half_down .5s 0s infinite;
  margin-top: -50px
}

.pacman>div:nth-child(3),.pacman>div:nth-child(4),.pacman>div:nth-child(5),.pacman>div:nth-child(6) {
  background-color: $primary-color;
  width: 15px;
  height: 15px;
  border-radius: 100%;
  margin: 2px;
  width: 10px;
  height: 10px;
  position: absolute;
  -webkit-transform: translate(0,-6.25px);
  -ms-transform: translate(0,-6.25px);
  transform: translate(0,-6.25px);
  top: 25px;
  left: 100px
}

@-webkit-keyframes pacman-balls {
  75% {
    opacity: .7
  }

  100% {
    -webkit-transform: translate(-100px,-6.25px);
    transform: translate(-100px,-6.25px)
  }
}

@keyframes pacman-balls {
  75% {
    opacity: .7
  }

  100% {
    -webkit-transform: translate(-100px,-6.25px);
    transform: translate(-100px,-6.25px)
  }
}

@keyframes pacman-balls2 {
  100% {
    -webkit-transform: translate(-3px,-1px);
    transform: translate(-3px,-1px)
  }
}

@-webkit-keyframes rotate_pacman_half_up {
  0% {
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg)
  }

  50% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg)
  }

  100% {
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg)
  }
}

@keyframes rotate_pacman_half_up {
  0% {
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg)
  }

  50% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg)
  }

  100% {
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg)
  }
}

@-webkit-keyframes rotate_pacman_half_down {
  0% {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg)
  }

  50% {
    -webkit-transform: rotate(0);
    transform: rotate(0)
  }

  100% {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg)
  }
}

@keyframes rotate_pacman_half_down {
  0% {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg)
  }

  50% {
    -webkit-transform: rotate(0);
    transform: rotate(0)
  }

  100% {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg)
  }
}


.circular {
  height: 88px;
  width: 88px;
  -webkit-animation: loading-rotate 2s linear infinite;
  animation: loading-rotate 2s linear infinite
}

.circular .path {
  -webkit-animation: loading-dash 1.5s ease-in-out infinite;
  animation: loading-dash 1.5s ease-in-out infinite;
  stroke-dasharray: 90,150;
  stroke-dashoffset: 0;
  stroke-width: 2;
  stroke: #409EFF;
  stroke-linecap: round
}

@-webkit-keyframes loading-rotate {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg)
  }
}

@keyframes loading-rotate {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg)
  }
}

@-webkit-keyframes loading-dash {
  0% {
    stroke-dasharray: 1,200;
    stroke-dashoffset: 0
  }

  50% {
    stroke-dasharray: 90,150;
    stroke-dashoffset: -40px
  }

  100% {
    stroke-dasharray: 90,150;
    stroke-dashoffset: -120px
  }
}

@keyframes loading-dash {
  0% {
    stroke-dasharray: 1,200;
    stroke-dashoffset: 0
  }

  50% {
    stroke-dasharray: 90,150;
    stroke-dashoffset: -40px
  }

  100% {
    stroke-dasharray: 90,150;
    stroke-dashoffset: -120px
  }
}


</style>